package com.wuli.auth.service;

import com.wuli.auth.entity.Role;
import com.wuli.auth.mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleService {

    @Autowired
    RoleMapper roleMapper;
    public void Add(String role) {
        roleMapper.Add(role);
    }

    public List<Role> GetAllRole() {
        return  roleMapper.GetAllRole();
    }
}
